package day_14.homework;

/**
 * @author cheke
 * @date 2021/08/22
 */

public class homework1 {
    public static void main(String[] args) {
        //创建对象
        Store store = new Store();

        //因为是实现的Runnable接口所以要将创建的对象作为参数传入
        //创建的线程对象中
        Thread t1 = new Thread(store);
        Thread t2 = new Thread(store);
        //设置线程名
        t1.setName("实体店");
        t2.setName("官网");

        //开启线程
        t1.start();
        t2.start();
    }
}
